package com.ming.controller;


import com.ming.pojo.Xsdd;
import com.ming.service.XsddService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.management.relation.Role;
import java.util.List;

@RestController
@RequestMapping("/sys/xsdd")
public class XsddController {

    @Resource
    private XsddService xsddService;

    @PostMapping("/list")
    public List<Xsdd> list(){

        List<Xsdd> list=xsddService.searchAll();
        return list;
    }

}
